-
-
Notifications
You must be signed in to change notification settings - Fork 360
Verlet in X86_64 #505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Verlet in X86_64 #505
Conversation
comisd xmm0, xmm7 # Check if position is greater then 0.0 | ||
ja verlet_loop | ||
verlet_return: | ||
movsd QWORD PTR [rdi], xmm3 # Saving time value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should just return in xmm0
and xmm1
(if necessary), passing in the pointer to return floats is a bit weird
comisd xmm0, xmm7 # Check if position is greater then 0.0 | ||
ja stormer_verlet_loop | ||
stormer_verlet_return: | ||
movsd QWORD PTR [rdi], xmm3 # Saving time and velocity |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similarly, return in xmm0
and xmm1
comisd xmm0, xmm7 | ||
ja velocity_verlet_loop | ||
velocity_verlet_return: | ||
movsd QWORD PTR [rdi], xmm4 # Saving time and velocity |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similarly, return in xmm0 and xmm1
I would agree with @Gustorn here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Newline is missing at the end.
No description provided.